﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
//using Foothill.Privilege.Biz;
using Foothill.Utils;
using System.Collections.Generic;
using GGFW.BusinessLogic.SystemManage;

namespace GGFW.Web.SystemManage
{
    public partial class GetMenuTree : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // 获取菜单Tree的读取方法
            string json = "";
            Response.ContentType = "text/html";
            FoothillMenuControl foothillMenuControl = new FoothillMenuControl();
            List<ExtTreeNode> list = foothillMenuControl.GetFunctionsTree();
            if (list != null)
            {
                // 返回json格式
                json = JsonConverter.SerializeObject(list);
            }
            Response.Write(json);
            Response.End();
        }
    }


}
